package com.mit.web.util
{
	import mx.validators.ValidationResult;
	import mx.validators.Validator;
	
	public class RePasswordValidator extends Validator
	{
		public var password:String;
		public var passwordUnequal:String;
		
		public function RePasswordValidator()
		{
			super();
		}
		override protected function doValidation(value:Object):Array
			
		{
			
			var results:Array=super.doValidation(value);
			
			var val:String=value ? String(value) : "";
			
			var results:Array=[];
			if (val != password)
			{
				results.push(new ValidationResult(true, null, "unequal", passwordUnequal));
			}
			return results;
		}

	}
}